﻿using AppSocketModel;
using AppSocketModel.Consume;
using AutoMapper;

namespace AppSocketService.Mapper
{
    public class GpsProfile:Profile
    {
        public GpsProfile()
        {
            CreateMap<AccountRequestDto, AccountDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();

            CreateMap<AccountRegisterDto, AccountDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<AccountPersonRegisterDto, AccountDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<SystemAccountRegisterDto,SystemAccountDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();

            CreateMap<FenceRequestDto, FenceDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();

            CreateMap<CompanyRequestDto, CompanyDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();

            CreateMap<VehicleRequestDto,VehicleDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();

            CreateMap<VehicleDto,VehicleLocationDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();

            CreateMap<ProductRequestDto, ProductDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();


            CreateMap<RelayRequestDto, RelayDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();

            
            CreateMap<DeviceUsePayTypeSelectRequestDto, DeviceUsePayTypeSelectDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<DeviceUsePayTypeSelectPutDto, DeviceUsePayTypeSelectDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
        }
    }
}
